package is.glif.fenius.client.connection.beans;

public class ServerInfo {
    private boolean useSSL;
    private boolean useHttpBasicAuth;
    private String httpUsername;
    private String httpPassword;
    private String url;
    private String id;
    
    public boolean isUseSSL() {
        return useSSL;
    }
    public void setUseSSL(boolean useSSL) {
        this.useSSL = useSSL;
    }
    public boolean isUseHttpBasicAuth() {
        return useHttpBasicAuth;
    }
    public void setUseHttpBasicAuth(boolean useHttpBasicAuth) {
        this.useHttpBasicAuth = useHttpBasicAuth;
    }
    public String getHttpUsername() {
        return httpUsername;
    }
    public void setHttpUsername(String httpUsername) {
        this.httpUsername = httpUsername;
    }
    public String getHttpPassword() {
        return httpPassword;
    }
    public void setHttpPassword(String httpPassword) {
        this.httpPassword = httpPassword;
    }
    public void setUrl(String url) {
        this.url = url;
    }
    public String getUrl() {
        return url;
    }
    public void setId(String id) {
        this.id = id;
    }
    public String getId() {
        return id;
    }
    
    public String toString() {
        String out = "";
        out += "id: "+id+"\n";
        out += "url: "+url+"\n";
        out += "ssl: "+useSSL+"\n";
        out += "httpBasic: "+useHttpBasicAuth+"\n";
        out += "user: "+httpUsername+"\n";
        out += "pass: "+httpPassword+"\n";
        return out;
    }
    
}
